@extends('admin.common.layouts')

@section('style')
 <link href="{{URL::asset('css/custom.min.css')}}" rel="stylesheet">

    <style>
        .abtn a{
            color:#fff;
            line-height:20px;
        }
        .abtn a:hover{
            color:#fff;
            text-decoration:none;
        }
    </style>
@show

@section('content')
  <div class="col-md-12">
    <div class="box">
      <!-- 栏目信息 -->
      <div class="box-header with-border">
        <h3 class="box-title">编辑运动会</h3>
      </div>

      <!-- 内容 -->
      <div class="box-body">
        <div class="x_content">
          <form method="post" action="{{url('admin/sport/meeting/update',['id' => $sportsmeeting->id])}}" class="form-horizontal form-label-left" novalidate>
            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">运动会名 <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input id="name" name="sportsmeeting[name]"  value="{{$sportsmeeting->name}}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2"  placeholder="请输入运动会名称" required="required" type="text">
              </div>
            </div>

            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">开始时间 <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input id="name" name="sportsmeeting[start_time]"  value="{{$sportsmeeting->start_time}}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2"  placeholder="例如:2018/6/18" required="required" type="text">
              </div>
            </div>

            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">结束时间 <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input id="name" name="sportsmeeting[end_time]"  value="{{$sportsmeeting->end_time}}" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2"  placeholder="例如:2018/6/18" required="required" type="text">
              </div>
            </div>
            
            <div class="ln_solid"></div>
            <div class="form-group">
              <div class="col-md-6 col-md-offset-3">
                <button type="button" class="btn btn-primary abtn"><a href="\admin\sport\meeting">返回</a></button>
                <button id="send" type="submit" class="btn btn-success">提交</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
@endsection
